/* jshint indent: 2 */

module.exports = function(sequelize, DataTypes) {
  return sequelize.define('fNameCertification', {
    id: {
      type: DataTypes.INTEGER(11),
      allowNull: false,
      primaryKey: true,
      autoIncrement: true,
      field: 'id'
    },
    userid: {
      type: DataTypes.INTEGER(11),
      allowNull: true,
      field: 'userid'
    },
    identityCardNum: {
      type: DataTypes.STRING(25),
      allowNull: true,
      field: 'identity_card_num'
    },
    bankCardNum: {
      type: DataTypes.STRING(255),
      allowNull: true,
      field: 'bank_card_num'
    },
    identityCardFacePicurl: {
      type: DataTypes.STRING(255),
      allowNull: true,
      field: 'identity_card_face_picurl'
    },
    identityCardOppositePicurl: {
      type: DataTypes.STRING(255),
      allowNull: true,
      field: 'identity_card_opposite_picurl'
    },
    idType: {
      type: DataTypes.STRING(255),
      allowNull: true,
      field: 'id_type'
    }
  }, {
    tableName: 'f_name_certification'
  });
};
